Optimal. Leaf size=66 \[ \frac {\sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{f}-\frac {\cos (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {4134, 277, 217, 206} \[ \frac {\sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{f}-\frac {\cos (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 217
Rule 277
Rule 4134
Rubi steps
\begin {align*} \int \sqrt {a+b \sec ^2(e+f x)} \sin (e+f x) \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\sqrt {a+b x^2}}{x^2} \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac {\cos (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{f}+\frac {b \operatorname {Subst}\left (\int \frac {1}{\sqrt {a+b x^2}} \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac {\cos (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{f}+\frac {b \operatorname {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{f}\\ &=\frac {\sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{f}-\frac {\cos (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.13, size = 98, normalized size = 1.48 \[ \frac {\sqrt {2} \cos (e+f x) \sqrt {a+b \sec ^2(e+f x)} \left (\sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {a \cos ^2(e+f x)+b}}{\sqrt {b}}\right )-\sqrt {a \cos ^2(e+f x)+b}\right )}{f \sqrt {a \cos (2 (e+f x))+a+2 b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.84, size = 182, normalized size = 2.76 \[ \left [-\frac {2 \, \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) - \sqrt {b} \log \left (\frac {a \cos \left (f x + e\right )^{2} + 2 \, \sqrt {b} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + 2 \, b}{\cos \left (f x + e\right )^{2}}\right )}{2 \, f}, -\frac {\sqrt {-b} \arctan \left (\frac {\sqrt {-b} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{b}\right ) + \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{f}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.53, size = 93, normalized size = 1.41 \[ -\frac {\left (a +b \left (\sec ^{2}\left (f x +e \right )\right )\right )^{\frac {3}{2}}}{f a \sec \left (f x +e \right )}+\frac {b \sec \left (f x +e \right ) \sqrt {a +b \left (\sec ^{2}\left (f x +e \right )\right )}}{f a}+\frac {\sqrt {b}\, \ln \left (\sec \left (f x +e \right ) \sqrt {b}+\sqrt {a +b \left (\sec ^{2}\left (f x +e \right )\right )}\right )}{f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 88, normalized size = 1.33 \[ -\frac {2 \, \sqrt {a + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + \sqrt {b} \log \left (\frac {\sqrt {a + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) - \sqrt {b}}{\sqrt {a + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + \sqrt {b}}\right )}{2 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.77, size = 87, normalized size = 1.32 \[ -\frac {\cos \left (e+f\,x\right )\,\sqrt {a+\frac {b}{{\cos \left (e+f\,x\right )}^2}}}{f}-\frac {\sqrt {b}\,\mathrm {asin}\left (\frac {\sqrt {b}\,1{}\mathrm {i}}{\sqrt {a}\,\cos \left (e+f\,x\right )}\right )\,\sqrt {a+\frac {b}{{\cos \left (e+f\,x\right )}^2}}\,1{}\mathrm {i}}{\sqrt {a}\,f\,\sqrt {\frac {b}{a\,{\cos \left (e+f\,x\right )}^2}+1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a + b \sec ^{2}{\left (e + f x \right )}} \sin {\left (e + f x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________